package cn.gov.ssxmzj.controller;

import cn.gov.ssxmzj.entry.PageNews;
import cn.gov.ssxmzj.service.BeneficiaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/beneficiary")
public class BeneficiaryController {

    @Autowired
    private BeneficiaryService service;

    @ResponseBody
    @RequestMapping("/getBeneficiaryInfo")
    public PageNews getBeneficiaryInfo(int page, int limit, String beneficiaryType, String villageId,String searchName){
        return service.getBeneficiaryInfo(page,limit,beneficiaryType,villageId,searchName);
    }

}
